#!/usr/bin/env bash

set -x

DEVEL_BASE_IMAGE_NAME=${DEVEL_BASE_IMAGE_NAME:-"ubuntu:24.04"}
DEVEL_IMAGE_NAME=${DEVEL_IMAGE_NAME:-"zetton/trajectory-simulator:24.01"}
DEVEL_IMAGE_PLATFORM=${DEVEL_IMAGE_PLATFORM:-"linux/amd64"}

docker build \
  -t "${DEVEL_IMAGE_NAME}" \
  -f Dockerfile \
  --platform "${DEVEL_IMAGE_PLATFORM}" \
  --build-arg BASE_IMAGE="${DEVEL_BASE_IMAGE_NAME}" \
  . 
